package com.example.administrator.test2;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class function extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_function);
        Button mbotton2 = (Button) findViewById(R.id.button2);
        mbotton2.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View v){
                Intent intent = new Intent();
                intent.setClass(function.this,in.class);
                startActivity(intent);
            }
        });
        Button mbotton3 = (Button) findViewById(R.id.button3);
        mbotton3.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View v){
                Intent intent = new Intent();
                intent.setClass(function.this,out.class);
                startActivity(intent);
            }
        });
       /* Button mbotton4 = (Button) findViewById(R.id.button4);
        mbotton4.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View v){
                Intent intent = new Intent();
                intent.setClass(function.this,history.class);
                startActivity(intent);
            }
        });*/
    }
}
